﻿
@model RTW.OA.Models.user
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("Edit", "User", FormMethod.Post, new { area = "System", id = "userfrom", name = "userfrom" }))
                {
                    @Html.AntiForgeryToken()

                    <div class="from-content">
                        @Html.HiddenFor(m => m.USER_ID)
                        <dl>
                            <dt>用户名</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_NAME, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>用户密码</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_PWD, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>用户真实姓名</dt>
                            <dd>
                                @Html.EditorFor(m => m.TRUE_NAME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>登录名</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_NO, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>用户姓名索引</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_NAME_INDEX, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        @*<dl>
                            <dt>角色编号</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_PRIV, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>角色排序号</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_PRIV_NO, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>*@
                        <dl>
                            <dt>角色</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.USER_PRIV, ViewBag.USER_PRIVData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>管理范围</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.POST_PRIV, ViewBag.POST_PRIVData as List<SelectListItem>, new { @Class = "form-control" })</div>

                            </dd>
                        </dl>
                        <dl>
                            <dt>管理范围指定部门</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.POST_DEPT, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>部门</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.DEPT_ID, ViewBag.DEPT_IDData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>辅助部门</dt>
                            <dd>
                                @Html.EditorFor(m => m.DEPT_ID_OTHER, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>授权查看部门id串</dt>
                            <dd>
                                @Html.EditorFor(m => m.VIEW_DEPT_ID, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>授权查看人员uid串</dt>
                            <dd>
                                @Html.EditorFor(m => m.VIEW_UID, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>授权查看角色id串</dt>
                            <dd>
                                @Html.EditorFor(m => m.VIEW_PRIV_ID, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>离职部门</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.LEAVE_DEPT, ViewBag.LEAVE_DEPTData as List<SelectListItem>, new { @Class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>生日</dt>
                            <dd>
                                @Html.EditorFor(m => m.BIRTHDAY, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>性别</dt>
                            <dd>
                                <div class="rule-single-checkbox">@Html.RadioButtonFor(m => m.SEX, new { @class = "form-control" })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>工作电话</dt>
                            <dd>
                                @Html.EditorFor(m => m.TEL_NO_DEPT, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>工作传真</dt>
                            <dd>
                                @Html.EditorFor(m => m.FAX_NO_DEPT, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>家庭住址</dt>
                            <dd>
                                @Html.EditorFor(m => m.ADD_HOME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>家庭邮编</dt>
                            <dd>
                                @Html.EditorFor(m => m.POST_NO_HOME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>家庭电话</dt>
                            <dd>
                                @Html.EditorFor(m => m.TEL_NO_HOME, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>手机号</dt>
                            <dd>
                                @Html.EditorFor(m => m.MOBIL_NO, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>电子邮件地址</dt>
                            <dd>
                                @Html.EditorFor(m => m.EMAIL, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>QQ号码</dt>
                            <dd>
                                @Html.EditorFor(m => m.OICQ_NO, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>微信号码</dt>
                            <dd>
                                @Html.EditorFor(m => m.WEIXIN_NO, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>自定义小头像</dt>
                            <dd>
                                @Html.EditorFor(m => m.AVATAR, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>短信提示音</dt>
                            <dd>
                                @Html.EditorFor(m => m.CALL_SOUND, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>上次访问系统的时间</dt>
                            <dd>
                                @Html.EditorFor(m => m.LAST_VISIT_TIME, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>登录模式</dt>
                            <dd>
                                @Html.EditorFor(m => m.MENU_TYPE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>上次修改密码的时间</dt>
                            <dd>
                                @Html.EditorFor(m => m.LAST_PASS_TIME, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>快捷菜单ID串</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.SHORTCUT, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>门户ID串</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.PORTAL, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>在线时长</dt>
                            <dd>
                                @Html.EditorFor(m => m.ONLINE, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>记录在线状态</dt>
                            <dd>
                                @Html.EditorFor(m => m.ON_STATUS, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>岗位状态</dt>
                            <dd>
                                @Html.EditorFor(m => m.ATTEND_STATUS, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>手机号码是否公开</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.EditorFor(m => m.MOBIL_NO_HIDDEN, new { htmlAttributes = new { Class = "input small form-control" } }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>禁止登录OA系统</dt>
                            <dd>
                                <div class="rule-single-checkbox">@Html.EditorFor(m => m.NOT_LOGIN, new { htmlAttributes = new { @class = "input normal form-control" } })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>禁止查看用户列表</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.EditorFor(m => m.NOT_VIEW_USER, new { htmlAttributes = new { @class = "input normal form-control" } })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>禁止显示桌面</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.EditorFor(m => m.NOT_VIEW_TABLE, new { htmlAttributes = new { @class = "input normal form-control" } })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>禁止OA搜索</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.EditorFor(m => m.NOT_SEARCH, new { htmlAttributes = new { @class = "input normal form-control" } })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>桌面背景图片</dt>
                            <dd>
                                @Html.EditorFor(m => m.BKGROUND, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>绑定IP地址</dt>
                            <dd>
                                @Html.EditorFor(m => m.BIND_IP, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>上次访问系统的IP</dt>
                            <dd>
                                @Html.EditorFor(m => m.LAST_VISIT_IP, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>备注</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.REMARK, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>个性签名</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.MY_STATUS, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>登录次数限制</dt>
                            <dd>
                                @Html.EditorFor(m => m.LIMIT_LOGIN, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>用户名片图片</dt>
                            <dd>
                                @Html.EditorFor(m => m.PHOTO, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>用户参数</dt>
                            <dd>
                                @Html.TextAreaFor(m => m.USER_PARA, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>用户管理的模块</dt>
                            <dd>
                                @Html.EditorFor(m => m.MANAGE_MODULE_TYPE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>用户角色类型</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_PRIV_TYPE, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>用户管理的分支机构ID串</dt>
                            <dd>
                                @Html.EditorFor(m => m.USER_MANAGE_ORGS, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>状态</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.STATUS, new { @class = "form-control" }) </div>
                            </dd>
                        </dl>

                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;" onclick="savefrom()">
                            <a class="btn btn-sm btn-primary radius">
                                <i class="iconfont icon-save"></i>
                                提交保存
                            </a>
                            <a class="btn btn-sm btn-warning radius" onclick="parent.subcloseTab('6202')">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#userfrom").initValidform();

        });
        function savefrom() {
            $("#userfrom").submit();
        }

    </script>

}